package io.github.junxworks.qt.modules.mm.engine;

public class CtxHolder {
	private static final ThreadLocal<DataContext> ctxs = new ThreadLocal<>();

	public static void setContext(DataContext ctx) {
		ctxs.set(ctx);
	}

	public static DataContext getContext() {
		return ctxs.get();
	}

	public static void remove() {
		ctxs.remove();
	}
}
